<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Products extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->load->library('rest_caller');
    }

    function test() {
        $array = array(
            'id' => 1
        );
        $url = 'api/products/getAll';
        $result= $this->rest_caller->post($url, $array);
        var_dump($result);
    }

}

?>